home *** CD-ROM | disk | FTP | other *** search
- #include "stdio.h"
-
- #define START 7
- #define END -5
-
- void main()
- {
- int index;
-
- for(index = START ; index >= END ; index = index - 1)
- printf("The value of the count is now %2d\n", index);
- }
-
-
-
- /* Result of execution
-
- The value of the count is now 7
- The value of the count is now 6
- The value of the count is now 5
- The value of the count is now 4
- The value of the count is now 3
- The value of the count is now 2
- The value of the count is now 1
- The value of the count is now 0
- The value of the count is now -1
- The value of the count is now -2
- The value of the count is now -3
- The value of the count is now -4
- The value of the count is now -5
-
- */
-